package com.city.repository.report;/*
 * @Author: 李顺时
 * @Description:
 * @Date: Create in 14:44 2018/9/7
 * @Modified By:
 * */

import com.city.domain.report.CtGeospatial;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CtGeospatialRepository extends JpaRepository<CtGeospatial,Integer> {

    @Query(value = "select * from ct_geospatial where gatherer_name = ?1", nativeQuery = true)
    List<CtGeospatial> findAllByGathererName(String gathererName);

}
